package com.zhl.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/** 
* @author 朱宏亮
* @version 创建时间：2018年1月9日 下午5:41:14 
* 类说明 
*/
@Service("userService")
public class UserServiceImpl implements UserService{
    
    Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);
    
    User user = new User();
    UserServiceImpl(){
        logger.info("类：UserServiceImpl");
        user.setId(1);
        user.setName("zhl");
        user.setPhone("18627888888");
        user.setAddress("西二旗");
    }
    
    @Override
    public void setUser(User user) {
        logger.info("方法setUser");
        this.user = user;
    }

    @Override
    public User getUser() {
        logger.info("方法getUser");
        return user;
    }
    

}
 